﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="MvcMall.AdminWeb.Manage.User.UserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户管理</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="tabs">
        <ul>
            <li><a href="#menuList">用户管理</a></li>
        </ul>
        <div id="menuList">
            <table width="100%">
                <tr>
                    <td style="text-align: right;">
                        用户名:
                    </td>
                    <td>
                        <asp:TextBox ID="txtUserName" Width="100" runat="server" />
                    </td>
                    <td style="text-align: right;">
                        真实姓名:
                    </td>
                    <td>
                        <asp:TextBox ID="txtRealName" Width="100" runat="server" />
                    </td>
                    <td style="text-align: right;">
                        电子邮箱:
                    </td>
                    <td  colspan="3">
                        <asp:TextBox ID="txtEmail" Width="100" runat="server" />
                    </td>
                 
                  
                </tr>
                <tr>
                   <td style="text-align: right;">
                        电话号码:
                    </td>
                    <td>
                        <asp:TextBox ID="txtTel" Width="100" runat="server" />
                    </td>
                    <td style="text-align: right;">
                        手机号码:
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhone" Width="100" runat="server" />
                    </td>
                    <td style="text-align: right;">
                        性别:
                    </td>
                    <td >
                        <asp:DropDownList ID="ddlSex" runat="server">
                            <asp:ListItem Text="-请选择查询条件-" Value="-1"></asp:ListItem>
                            <asp:ListItem Text="男" Value="1"></asp:ListItem>
                            <asp:ListItem Text="女" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                    
                        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                   
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rptList" runat="server" ViewStateMode="Disabled" EnableViewState="false">
                <HeaderTemplate>
                    <table width="100%">
                        <tr>
                            <th>
                                用户ID
                            </th>
                            <th>
                                用户名
                            </th>
                            <th>
                                电子邮箱
                            </th>
                            <th>
                                性别
                            </th>
                            <th>
                                手机号码
                            </th>
                            <th>
                                电话号码
                            </th>
                            <th>
                                是否锁定
                            </th>
                            <th>
                                注册时间
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("Id") %>
                        </td>
                        <td>
                            <%# Eval("UserName")%>
                        </td>
                        <td>
                            <%# Eval("Email")%>
                        </td>
                        <td>
                             <%# Eval("Sex").Equals(MvcMall.Core.Enums.Sex.男)?"男":"女"%>
                        </td>
                        <td>
                            <%# Eval("Mobile")%>
                        </td>
                        <td>
                            <%# Eval("Phone")%>
                        </td>
                        <td>
                            <%# Eval("IsLocked").Equals(true)?"锁定":"末锁定"%>
                        </td>
                        <td>
                            <%# Eval("RegTime")%>
                        </td>
                        <td>
                             <a href="UserDetail.aspx?ID= <%# Eval("ID")%>">查看详细</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>
            <UC:AspNetPager ID="ANPager" runat="server" HorizontalAlign="Right" PagingButtonSpacing="10px"
                Width="100%" ShowCustomInfoSection="Right" CurrentPageButtonPosition="Center"
                FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" ShowPageIndex="false"
                CssClass="paginator" CurrentPageButtonClass="cpb" ReverseUrlPageIndex="true"
                PageSize="10" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条，共%RecordCount%条记录"
                SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" LayoutType="Table"
                OnPageChanged="ANPager_PageChanged" ShowPageIndexBox="Always" PageIndexBoxType="DropDownList">
            </UC:AspNetPager>
        </div>
    </div>
    </form>
</body>
</html>
